import uniqueString from "unique-string";
import uniqueId from "lodash/uniqueId";

export function getExerciseList(n) {
    let result = [];
    for (let i = 0; i < n; i++) {
        result.push({
            id: uniqueString(),
            content: `内容哈市第九${Math.random() * 99999} - ${uniqueString()}`,
            selected: false,
            name: `章节 ${uniqueId()}`
        })
    }
    return result;
}

export function getNavList(n) {
    let result = [];
    for (let i = 0; i < n; i++) {
        result.push({
            id: uniqueString(),
            name: `导航${uniqueId()}`
        })
    }
    return result;
}

